

package com.magicking.apnswitch;


/**
 * @author Martin Adamek <martin.adamek@gmail.com>
 */
public final class NameUtil {

    public static final String SUFFIX = "apnswitch";

    static String addSuffix(String currentName) {
        if (currentName == null) {
            return SUFFIX;
        } else {
            return currentName + SUFFIX;
        }
    }

    static String removeSuffix(String currentName) {
        if (currentName.endsWith(SUFFIX)){
            return currentName.substring(0, currentName.length() - SUFFIX.length());
        }else{
            return currentName;
        }
    }

}
